#include <iostream>
using namespace std;

int main() {
    int m, n;
    while (cin >> m) {
        int a[1001] = {0};
        while (m--) {
            cin >> n;
            a[n] = 1;
        }
        for (int i=0; i<1001; i++) {
            if (a[i]) {
                cout << i << endl;
            }
        }
    }
    return 0;
}
